package com.zjitc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.View;
import org.springframework.web.servlet.view.InternalResourceView;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/19 15:43
 * @description:
 */
@Controller
public class LocationController {

  @RequestMapping("/location")
  public View handler1() {
    View view = new InternalResourceView("/WEB-INF/index.jsp");

    return view;
  }

  @RequestMapping("/welcome")
  public View handler2() {
    View view = new InternalResourceView("/index.jsp");

    return view;
  }

  @RequestMapping("/html")
  public View handler3() {
    View view = new InternalResourceView("/WEB-INF/index.html");

    return view;
  }
}
